package com.cctv.fmaed.module.redis.memory.pojo.po;

import java.util.LinkedHashMap;

/**
 * 设备注册DTO
 *
 * @author heyingcheng
 * @since 2023/8/29
 */
public class DeviceRegisterPO extends LinkedHashMap<String, String> {

    public static final String HASH_KEY_DEVICE_ID = "device_id";
    public static final String HASH_KEY_DEVICE_NAME = "device_name";
    public static final String HASH_KEY_GUID = "guid";
    public static final String HASH_KEY_SECRET_KEY = "secret_key";
    public static final String HASH_KEY_CREATE_TIME = "create_time";
    public static final String HASH_KEY_UPDATE_TIME = "update_time";
    public static final String HASH_KEY_UUID = "uuid";

    public String getDeviceId() {
        return get(HASH_KEY_DEVICE_ID);
    }

    public String getDeviceName() {
        return get(HASH_KEY_DEVICE_NAME);
    }

    public String getGuid() {
        return get(HASH_KEY_GUID);
    }

    public String getSecretKey() {
        return get(HASH_KEY_SECRET_KEY);
    }

    public Long getCreateTime() {
        return Long.valueOf(HASH_KEY_CREATE_TIME);
    }

    public Long getUpdateTime() {
        return Long.valueOf(HASH_KEY_UPDATE_TIME);
    }

}
